package com.shop.cloud.model.request;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * @author Alex
 */
@ToString(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = { "hibernateLazyInitializer", "handler", "fieldHandler" }, ignoreUnknown = true)
public class AddUserRequest {

	public static final int SEX_MALE = 1;	// 男性
    public static final int SEX_FEMALE = 2;	// 女性
	
	@JsonProperty("headPortrait")
	@ApiModelProperty(value = "用户头像", example = "", required = true)
	private String headPortrait;

	@JsonProperty("nickName")
	@ApiModelProperty(value = "用户昵称", example = "", required = true)
	private String nickName;

	@JsonProperty("sex")
	@ApiModelProperty(value = "性别", example = "", required = true)
	private int sex;

	@JsonProperty("mobile")
	@ApiModelProperty(value = "登录账号", example = "", required = true)
	private String mobile;

	@JsonProperty("password")
	@ApiModelProperty(value = "登录密码", example = "", required = true)
	private String password;

	@JsonProperty("storeId")
	@ApiModelProperty(value = "所属门店", example = "", required = false)
	private long storeId;

	@JsonProperty("cardNumber")
	@ApiModelProperty(value = "会员卡号", example = "", required = false)
	private String cardNumber;

	@JsonProperty("level")
	@ApiModelProperty(value = "级别", example = "", required = false)
	private int level;

	public String getHeadPortrait() {
		return headPortrait;
	}

	public void setHeadPortrait(String headPortrait) {
		this.headPortrait = headPortrait;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public int getSex() {
		return sex;
	}

	public void setSex(int sex) {
		this.sex = sex;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public long getStoreId() {
		return storeId;
	}

	public void setStoreId(long storeId) {
		this.storeId = storeId;
	}

	public String getCardNumber() {
		return cardNumber;
	}

	public void setCardNumber(String cardNumber) {
		this.cardNumber = cardNumber;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

}
